const doc = (): ClassDecorator => {
  return (target: any) => {
    console.log('target==', target);
    console.log(target.title);
  };
};

@doc()
class XdClass {
  title = 'test';
  test() {
    console.log('hellow');
  }
}
